﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fluq
{
	sealed class DependencyKey : IDependencyKey
	{
		private Type _type;
		private IComparable _id;

		public DependencyKey(Type type, IComparable id = null)
		{
			_type = type;
			_id = id;
		}

		public Type Type { get { return _type; } }

		public IComparable Id { get { return _id; } }

		public override string ToString()
		{
			return String.Format("{0}/{1}", _type, _id);
		}
	}
}
